import {http} from "@/interceptor/luch-request/index.js"
// 新增家长
export const save = (data) => {
    return http.post("api/admin/parents/v1/saveParent", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}

 // 删除家长
export const del = (data) => {
    return http.delete("api/admin/parents/v1/deleteParent",data,{
		header:{
			"content-type": "application/json"
		}
	});	
}
 
// 编辑家长
export const update = (data) => {
    return http.put("api/admin/parents/v1/updateParent",data,{
		header:{
			"content-type": "application/json"
		}
	});	
} 

// 修改家长密码
export const parentPwd = (data) => {
    return http.put("api/admin/parents/v1/update/parentPwd",data,{
		header:{
			"content-type": "application/json"
		}
	});	
}


// 修改第一联系人
export const updateContacts = (data) => {
    return http.post("api/admin/parents/v1/updateContacts", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}

// 查询家长信息
export const info = (id) => {
  	return http.get("api/admin/parents/v1/listParents/"+id, {
  		header:{
  			"content-type": "application/x-www-form-urlencoded"
  		}
  	});
 }
 
 // 重置家长密码
export const resetPwd = (id) => {
  	return http.post("api/admin/parents/v1/resetPwd/"+id, {
  		header:{
  			"content-type": "application/x-www-form-urlencoded"
  		}
  	});
 }